import {axios} from '@/utils/request'

export default {
  conf (data) {
    return axios({
      url: '/jushuitan/conf/conf',
      method: 'get',
      params: data,
    })
  },
  confSave(data) {
    return axios({
      data,
      method: 'post',
      url: '/jushuitan/conf/conf-save'
    })
  },
  // 店铺授权信息
  indexConf(data) {
    return axios({
      params: data,
      method: 'get',
      url: '/jushuitan/index/conf'
    })
  },
  saveConfStore(data) {
    return axios({
      data,
      method: 'post',
      url: '/jushuitan/index/save-conf'
    })
  },
  // 店铺授权链接
  createUrl(data) {
    return axios({
      params: data,
      method: 'get',
      url: '/jushuitan/index/create-url'
    })
  },
  // 同步商品分类
  cat2Jst(data) {
    return axios({
      params: data,
      method: 'get',
      url: '/jushuitan/index/cat2-jst'
    })
  },
  // 同步商品
  goods2Jst(data) {
    return axios({
      params: data,
      method: 'post',
      url: '/jushuitan/index/goods2-jst'
    })
  },
  // 从聚水潭导入分类
  jst2cat(data) {
    return axios({
      params: data,
      method: 'get',
      url: '/jushuitan/index/jst2-cat'
    })
  },
  // 从聚水潭导入商品
  jst2goods(data) {
    return axios({
      params: data,
      method: 'get',
      url: '/jushuitan/index/jst2-goods'
    })
  },

}
